package com.dieusoft.box.ship.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dieusoft.box.ship.entity.DeclareAtCustomsInfo;
import com.dieusoft.box.ship.mapper.DeclareAtCustomsInfoMapper;
import com.dieusoft.box.ship.service.DeclareAtCustomsInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 报关
 *
 * @author
 * @date: Fri Jan 15 16:10:22 CST 2021
 */

@Service
public class DeclareAtCustomsInfoServiceImpl extends ServiceImpl<DeclareAtCustomsInfoMapper, DeclareAtCustomsInfo> implements DeclareAtCustomsInfoService {

    @Autowired
    private DeclareAtCustomsInfoMapper declareAtCustomsInfoMapper;

    @Override
    public List<DeclareAtCustomsInfo> findByShipId(String shipId) {
        return declareAtCustomsInfoMapper.findByShipId(shipId);
    }

    @Override
    public boolean deleteAll() {
        return declareAtCustomsInfoMapper.deleteAll();
    }
}
